package cn.wolfcode.trip.base.util;

import lombok.Getter;

@Getter
public class JSONResult {
    private boolean success = true;
    //失败的时候的错误信息
    private String msg;
    //成功的时候带的数据
    private Object result;

    public JSONResult mark(String msg) {
        success = false;
        this.msg = msg;
        return this;
    }

    public JSONResult setResult(Object result) {
        this.result = result;
        return this;
    }
}
